package com.lecture.hibernate.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * AbstractDebateGroup entity provides the base persistence definition of the
 * DebateGroup entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractDebateGroup implements java.io.Serializable {

	// Fields

	private Integer dgId;
	private School school;
	private DebateGroupRole debateGroupRole;
	private String dgName;
	private Integer dgYear;
	private Set debateGroupStudents = new HashSet(0);
	private Set debateGroupTeachers = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractDebateGroup() {
	}

	/** minimal constructor */
	public AbstractDebateGroup(School school, DebateGroupRole debateGroupRole) {
		this.school = school;
		this.debateGroupRole = debateGroupRole;
	}

	/** full constructor */
	public AbstractDebateGroup(School school, DebateGroupRole debateGroupRole,
			String dgName, Integer dgYear, Set debateGroupStudents,
			Set debateGroupTeachers) {
		this.school = school;
		this.debateGroupRole = debateGroupRole;
		this.dgName = dgName;
		this.dgYear = dgYear;
		this.debateGroupStudents = debateGroupStudents;
		this.debateGroupTeachers = debateGroupTeachers;
	}

	// Property accessors

	public Integer getDgId() {
		return this.dgId;
	}

	public void setDgId(Integer dgId) {
		this.dgId = dgId;
	}

	public School getSchool() {
		return this.school;
	}

	public void setSchool(School school) {
		this.school = school;
	}

	public DebateGroupRole getDebateGroupRole() {
		return this.debateGroupRole;
	}

	public void setDebateGroupRole(DebateGroupRole debateGroupRole) {
		this.debateGroupRole = debateGroupRole;
	}

	public String getDgName() {
		return this.dgName;
	}

	public void setDgName(String dgName) {
		this.dgName = dgName;
	}

	public Integer getDgYear() {
		return this.dgYear;
	}

	public void setDgYear(Integer dgYear) {
		this.dgYear = dgYear;
	}

	public Set getDebateGroupStudents() {
		return this.debateGroupStudents;
	}

	public void setDebateGroupStudents(Set debateGroupStudents) {
		this.debateGroupStudents = debateGroupStudents;
	}

	public Set getDebateGroupTeachers() {
		return this.debateGroupTeachers;
	}

	public void setDebateGroupTeachers(Set debateGroupTeachers) {
		this.debateGroupTeachers = debateGroupTeachers;
	}

}